package com.hbzhit.modules.sys.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.hbzhit.common.entity.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @author qq
 * @date 2022-04-22 16:15:46
 */
@TableName("sys_pro")
@Getter
@Setter
public class ProEntity extends BaseEntity {

    @ApiModelProperty(value = "项目id")
    private Long id;

    @ApiModelProperty(value = "项目名称")
    private String proName;

    @ApiModelProperty(value = "项目来源")
    private String proSource;

    @ApiModelProperty(value = "项目经理")
    private String proManager;

    @ApiModelProperty(value = "项目开始时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date proStartTime;

    @ApiModelProperty(value = "项目结束时间")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date proEndTime;

    @ApiModelProperty(value = "项目描述")
    private String proDescribe;

    @ApiModelProperty(value = "填报周期 填报周期,1月,2周,3日")
    private Integer proReportingCycle;

    @ApiModelProperty(value = "月-每月几号，周-每周周几，日默认1")
    private Integer proReportingDate;

    @ApiModelProperty(value = "推送时间")
    private String pushTime;

    @ApiModelProperty(value = "提前提醒")
    private String proAdvance;

    @ApiModelProperty(value = "备注")
    private String remark;

    @ApiModelProperty(value = "状态 0：启动 1：未启动 2：暂停 3：关闭")
    private Integer status;

    @ApiModelProperty("最近一次填报组id")
    private String reportGroupId;

}

